/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout/index.vue'

const examineRouter = [
  {
    path: '/file',
    component: Layout,
    redirect: '/file',
    name: 'examine',
    meta: {
      title: '文档管理',
      icon: 'document',
      roles: ['ROLE_MANAGER'],
    },
    children: [
      {
        path: 'fileNum',
        component: () => import('@/views/fileController/fileNum/index.vue'),
        name: 'fileNum',
        meta: {
          title: '归档统计',
          keepAlive: true,
          svg: 'statistics-menu',
          activePath: '/file/fileNum',
          roles: ['ROLE_ADMIN'],
        },
      },
      {
        path: 'examine',
        component: () => import('@/views/fileController/examineFile/index.vue'),
        name: 'examine',
        meta: {
          title: '归档审核',
          keepAlive: true,
          svg: 'examine-menu',
          activePath: '/file/examine',
          roles: ['ROLE_MANAGER'],
        },
      },
      {
        path: 'access',
        component: () => import('@/views/fileController/examineAccess/index.vue'),
        name: 'access',
        meta: {
          title: '访问审核',
          keepAlive: true,
          svg: 'examine-menu',
          activePath: '/file/access',
          roles: ['ROLE_MANAGER'],
        },
      },
      {
        path: 'fileSearch',
        component: () => import('@/views/fileController/fileSearch/index.vue'),
        name: 'fileSearch',
        meta: {
          title: '文档查询',
          keepAlive: true,
          icon: 'Search',
          roles: ['ROLE_MANAGER'],
        },
      },
    ],
  },
]

export default examineRouter
